#ifndef FRAMELESSWIDGET_H
#define FRAMELESSWIDGET_H

#include <QWidget>

namespace Ui
{
    class FramelessWidget;
}

class FramelessWidget : public QWidget
{
    Q_OBJECT

public:
    explicit FramelessWidget(QWidget *parent = nullptr);
    ~FramelessWidget();

    void setupUi(QWidget *frame);
    void setTitleIcon(const QString &icon);
    void setTitleIcon(const QPixmap &icon);
    void setTitleText(const QString &text);

private slots:

private:
    Ui::FramelessWidget *ui;

    QWidget *m_frame;
    QWidget *m_widget;
};

#endif // FRAMELESSWIDGET_H
